package com.yue92.datalife.common;

public enum CodeEnum implements ICode {

    SUCCESS(0, "success"),
    FAILURE(1, "common failure"),
    LOGIN_TOKEN_INVALID(2, "login token invalid"),
    ;

    private Integer code;

    private String message;

    private CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
